import 'package:OASys/components/scaffoldItem.dart';
import 'package:OASys/views/meeting/meetingPage.dart';
import 'package:flutter/material.dart';

class ProjectPage extends StatelessWidget {
  final Map arguments;

  ProjectPage({this.arguments, Key key});

  @override
  Widget build(BuildContext context) {
    return ScaffoldItem("项目管理", MyProjectPage(arguments));
  }
}

class MyProjectPage extends StatefulWidget {
  final Map arguments;

  MyProjectPage(this.arguments, {Key key});

  @override
  _MyProjectPageState createState() => _MyProjectPageState();
}

class _MyProjectPageState extends State<MyProjectPage> {
  goMyMeeting() {
    Navigator.of(context).push(MaterialPageRoute(
      builder: (context) => MeetingPage(),
    ));
  }

  @override
  Widget build(BuildContext context) {
    return Container(
      child: Column(
        children: [
          Text("这是项目管理"),
          RaisedButton(
            child: Text("${widget.arguments}"),
            onPressed: goMyMeeting,
          )
        ],
      ),
    );
  }
}
